package com.example.simplesvc;

public class ServerStateHolder {

    private final static ServerStateHolder INST = new ServerStateHolder();

    private volatile boolean serverStopping = false;

    public static ServerStateHolder getInstance() {
        return INST;
    }

    private ServerStateHolder() {
        super();
    }

    public void setServerStopping() {
        serverStopping = true;
    }
    public boolean isServerStopping() {
        return serverStopping;
    }
}
